import http from '@/utils/request'

export async function login(data) {
 
  return await http.login("/api/user/login",data)
}

export async function getInfo() {
  return await http.post("/api/getLoginUserInfoVo")
}

export async function logout() {
  return  await http.post("/api/loginOut")
}

export async function getLoginMenuInfoVo() {
  return  await http.post("/api/getLoginRouterInfoVo")
}

export async function selectAllUsers(params) {
  return  await http.post("/api/selectAllUsers",params)
}

export async function deleteYh(params) {
  return  await http.post("/api/deleteYh",params)
}

export async function addUser(params) {
  return  await http.post("/api/addUser",params)
}

export async function selectDepartmentsForUser() {
  return  await http.post("/api/selectDepartmentsForUser")
}

export async function selectAllRoles() {
  return  await http.post("/api/selectAllRoles")
}

export async function editUser(params) {
  return  await http.post("/api/editUser",params)
}

export async function selectAllRolesHasAl(params) {
  return  await http.post("/api/selectAllRolesHasAl",params)
}
